<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::namespace('Web')->group(function () {
    Route::get('/{nav?}', 'HomeController@home')->where(['nav' => 'home']);
    Route::get('/news', 'NewsController@index');
    Route::get('/order', 'OrderController@index');
    Route::get('/knowledge', 'KnowledgeController@index');
    Route::get('/about', 'AboutController@index');
    Route::get('/transaction', 'TransactionController@index');
    Route::get('/business', 'BusinessController@index');
    Route::get('/officer', 'OfficerController@getOfficer');

});



//Route::get('/officer', function () {
//    return view('officer',['currentNav' => 'officer']);
//});
//Route::get('/transaction', function () {
//    return view('transaction',['currentNav' => 'transaction']);
//});
//Route::get('/business', function () {
//    return view('business',['currentNav' => 'business']);
//});


Route::namespace('Content')->group(function () {
    Route::get('/{type}/{id}', 'ContentController@index');
});



//Route::get('/wxShare', 'TestController@wxShare');


